package com.example.demo.shell;

import com.jcraft.jsch.UserInfo;

public abstract class ShellUserInfo implements UserInfo {

	private String password;
	
	public ShellUserInfo(String password) {
		super();
		this.password = password;
	}

	@Override
	public String getPassphrase() {
		return null;
	}

	@Override
	public String getPassword() {
		return password;
	}

	@Override
	public boolean promptPassword(String message) {
		return true;
	}

	@Override
	public boolean promptPassphrase(String message) {
		return true;
	}

	@Override
	public boolean promptYesNo(String message) {
		return true;
	}

	@Override
	public void showMessage(String message) {

	}

}
